package ink.wbc.easyrule.rule;

import org.jeasy.rules.api.Facts;
import org.jeasy.rules.api.RuleListener;

/**
 * @author wbc
 * @date 2021/9/15
 * @desc
 */
public class LotteryListener implements RuleListener {

    /**
     *
     * @param rule
     * @param facts
     * @param evaluationResult
     */
    @Override
    public void afterEvaluate(org.jeasy.rules.api.Rule rule, Facts facts, boolean evaluationResult) {
        if (!evaluationResult) {
            System.out.println("不满足抽奖条件");
        }
    }

}
